﻿@using Controllers
@{
    var func=new MyFunc();
}
<!DOCTYPE html>
<html>
<head>
@Html.Partial("_top")
</head>
<body>
@Html.Partial("_header")
<div class="mainbg">
	<div class="w1200 mt20 cl">
		<div class="w260 fl">		
@Html.Partial("_left")
		</div>

		<div class="w900 fr">
		@{var classone=func.GetClass(ViewBag.model.classid);}
			<div class="newt_1 rel"><span class="abs fs16 fb">@classone.title</span><h1>当前位置：@Html.Raw(ViewBag.model.cur)</h1></div>
			<div class="ntit mt20">@ViewBag.model.title</div>
			<div class="ninfo">发布时间：<span>@ViewBag.model.info["model"].addtime</span> 浏览次数：<span>@ViewBag.model.info["model"].hits</span>次 来源：<span>@ViewBag.model.info["model"].source</span></div>
			<div class="ncon cl">
				@Html.Raw(ViewBag.model.content)
			</div>
			<div id="newsNextProv">
@{var prev=func.GetOne(ViewBag.model.ID,"prev",ViewBag.model.classid);}
                <div><span>上一条：</span>@if(prev.ID>0){
<a href="/article/@prev.ID" title="@prev.title">@prev.title</a>
}
else{
<span>没有了</span>
}
</div>
@{var next=func.GetOne(ViewBag.model.ID,"next",ViewBag.model.classid);}
                <div><span>下一条：</span>@if(next.ID>0){
<a href="/article/@next.ID" title="@next.title">@next.title</a>
}
else{
<span>没有了</span>
}</div>
            </div>
		</div>
	</div>
</div>

<div id="footer">
	@Html.Raw(ViewBag.model.copyright)
</div>

<script type="text/javascript">
$(function () {
    $(".nav ul li a[href='/list/@ViewBag.model.classid']").addClass("current");
    $(".nav ul li a[href='/list/@classone.fid']").addClass("current");
	
    var tag=$(".nav_1 li a[href='/list/@ViewBag.model.classid']").closest("li");

	tag.addClass("current");
})
</script>
</body>
</html>